package org.jeecg.modules.music.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.api.vo.user.UserDetailVo;
import org.jeecg.modules.api.vo.user.UserLevelVo;
import org.jeecg.modules.music.entity.MusArtist;
import org.jeecg.modules.music.entity.MusUser;

import java.util.Date;
import java.util.List;

public interface MusUserMapper extends BaseMapper<MusUser> {

    /**
     * 通过用户账号查询用户信息
     * @param nickname
     * @return
     */
    public MusUser getUserByNickName( @Param("nickname") String nickname);

    public MusUser getUserByPhone(@Param("telephone") String telephone);

    public MusUser getUserByEmail(@Param("email") String email);

    UserDetailVo reqDetail(@Param("uid") String uid);

    UserDetailVo getUserProfileByPhone(@Param("phone") String phone);

    UserLevelVo queryLevel(@Param("cookie") String cookie);

    void changePassword(@Param("uid") String uid, @Param("password") String password, @Param("updateTime") Date updateTime);

    void resetUserPassword(@Param("uid") String uid, @Param("password") String password,@Param("updateTime") Date date);
}
